package sound.main;


public class SourceProvider{
	int sources[] = new int[SoundManager.SOURCESPERBUFFER];
	int spointer;
	
	public SourceProvider(int sources[]){
		spointer = 0;
		this.sources = sources; 
	}
	public int getSource(){
		int s = sources[spointer];
		spointer++;
		if(spointer == SoundManager.SOURCESPERBUFFER){
			spointer = 0;
		}
		return s;
	}
}